// 在调用super()之前不能使用this或super
class Plant {
  constructor () {}
}

class Pea extends Plant {
  constructor () {
    this.name = 'world';
    super();
  }
}

const pea = new Pea();

console.log(pea);
